package com.student.dong.service.impl;

import com.student.dong.entity.AlgsCourseSelectionRecord;
import com.student.dong.mapper.AlgsCourseSelectionRecordMapper;
import com.student.dong.service.CourseSelectionRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Program: animalSystem->CourseSelectionRecordServiceImpl
 * @Description:
 * @Author: donghang
 * @Date: 2023-03-21 12:01
 * @Version： 1.0
 **/
@Service
public class CourseSelectionRecordServiceImpl implements CourseSelectionRecordService {

    @Autowired
    private AlgsCourseSelectionRecordMapper courseSelectionRecordMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return courseSelectionRecordMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AlgsCourseSelectionRecord record) {
        return courseSelectionRecordMapper.insert(record);
    }

    @Override
    public int insertSelective(AlgsCourseSelectionRecord record) {
        return courseSelectionRecordMapper.insertSelective(record);
    }

    @Override
    public AlgsCourseSelectionRecord selectByPrimaryKey(Long id) {
        return courseSelectionRecordMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(AlgsCourseSelectionRecord record) {
        return courseSelectionRecordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AlgsCourseSelectionRecord record) {
        return courseSelectionRecordMapper.updateByPrimaryKey(record);
    }
}
